package com.me.forum.dao;

import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.me.forum.domain.Page;
import com.me.forum.request.PageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IPageDao extends BaseMapper<Page> {
	int insertSelective(PageRequest preq);

//    int insertByRole(@Param("preq") PageRequest preq);


//    int updateByPage(PageRequest preq);
	
	//    int updateByPageTypeId(@Param("updated")Page updated,@Param("pageTypeId")Long pageTypeId);
	int updateByPageId(PageRequest preq);
	
	IPage<Page> selectByAll(IPage<Page> page, @Param("p") PageRequest preq);
	
	
}
